<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
if(session.getAttribute("account") == null){
	response.sendRedirect("index.jsp");
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <base href="<%=basePath%>"/>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>个人信息管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/css<s:property value="#session.account.theme"/>/echead.css"/>
	<link rel="stylesheet" type="text/css" href="css/css<s:property value="#session.account.theme"/>/contactEdit.css"/>
	<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript">
		$(function(){
			$("#savebutton").click(function(){
				$("#contactCreateForm").submit();
			});
		});
	</script>
</head>
<body>
<div id="menu">
   <ul >
   <a href="dayAtAGlanceAction"><li id="dayAtAGlance"></li></a>
   <a href="noteList"/><li id="notes"></li></a>
   <a href="taskList"><li id="tasks"></li></a>
   <a href="contactList"><li id="contacts"></li></a>
   <a href="appointmentList"><li id="appointments"></li></a>
   <a href="accountEditShow"><li id="myAccount"></li></a>
   <a href="logoff"><li id="logoff"></li></a>
   <a href="cgtheme?theme=1"><li id="skin1"></li></a>
   <a href="cgtheme?theme=2"><li id="skin2"></li></a>
   <a href="cgtheme?theme=3"><li id="skin3"></li></a>
   </ul> <div id="logo"></div>
</div>

<div id="main">
    <div id="secontmenu">
      <ul>
    <a href="contactForware?operate=create"> <li id="newContact"></li></a>
      </ul>
    </div>
    <div id="content">
          <div id="title"></div>
          <div id="contactEdit">创建联系人：</div>
               <form id="contactCreateForm" method="post" action="contactCreate">
               <div id="contactEditform">
                  <p id="name"><span>　　姓名：</span>
                      <input id="name" type="text" name="contact.name"/>
                  </p>
                  <p id="homephone"><span>家庭电话：</span>
                  <input id="homephone" type="text" name="contact.homePhone" />
                  </p>
                  <p id="workphone"><span>工作电话：</span>
                  <input id="workphone" type="text" name="contact.workPhone" />
                  </p>
                   <p id="QQ"><span>　　扣扣：</span>
                  <input id="QQ" type="text" name="contact.QQ" />
                  </p>
                  <p id="email"><span>电子邮箱：</span>
                  <input id="email" type="text" name="contact.email" />
                  </p>
                  <p id="address"><span>　　地址：</span>
                  <input id="address" type="text" name="contact.address" />
                  </p>
                   <p id="company"><span>　　公司：</span>
                  <input id="company" type="text" name="contact.company" />
                  </p>
                  <p id="contents"><span>　　内容：</span>
                  <textarea id="contents" name="contact.comments"></textarea>
                  </p>
                  <div id="savebutton"></div>
                  </div>
                </form> 
     </div>
</div>
</body>
</html>
